package com.iafme.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.iafme.dto.req.CertificateOrderReqDTO;
import com.iafme.dto.res.CertificateOrderResDTO;
import com.iafme.dto.res.OrderResDTO;
import com.iafme.model.CertificateOrder;
import com.iafme.properties.ScanPayReq;

import javax.servlet.http.HttpServletRequest;

/**
 * @author summer
 * @version 1.0
 * @date 2025/3/25 17:34
 */
public interface CertificateOrderService extends IService<CertificateOrder> {

    /**
     * 更新证书支付状态
     * @param outTradeNo
     * @return
     */
    OrderResDTO updateStatus(String outTradeNo);

    /**
     * 取消订单
     * @param reqDTO
     */
    void cancelOrder(CertificateOrderReqDTO reqDTO);

    /**
     * 支付
     * @param reqDTO
     * @return
     */
    ScanPayReq payOrder(CertificateOrderReqDTO reqDTO, HttpServletRequest request);
}
